package imagingbook.sift.util;

import ij.ImagePlus;
import ij.process.FloatProcessor;
import ij.process.ImageProcessor;

public class IjDisplay {
	
	public static void showProcessor(ImageProcessor ip, String title) {
		ImagePlus win = new ImagePlus(title, ip);
		win.show();
	}
	
	public static void showProcessor(FloatProcessor ip, String title) {
		ImagePlus win = new ImagePlus(title, ip);
		ip.resetMinAndMax();
		win.show();
	}
	
	public static void showProcessor(FloatProcessor ip, String title, double min, double max) {
		ImagePlus win = new ImagePlus(title, ip);
		ip.setMinAndMax(min, max);
		win.show();
	}

}
